//引入Vue
import Vue from 'vue'
//引入App
import App from './App.vue'
import vueResource from 'vue-resource'
import store from './store'
import VueRouter from 'vue-router'
import router from './router'
import{Row,Button}from 'element-ui'
// Row.name就是el-row,以此类推
Vue.component(Row.name,Row)
Vue.component(Button.name,Button)
// import ElementUI from 'element-ui'
// 引入elementUI全部样式
// import 'element-ui/lib/theme-chalk/index.css'
//关闭Vue的生产提示
Vue.config.productionTip = false
Vue.use(vueResource)
// 插件一定要记住use
Vue.use(VueRouter)
// Vue.use(ElementUI)
//创建vm
new Vue({
	el:'#app',
	store,
	router,
	render: h => h(App),
	beforeCreate() {
		Vue.prototype.$bus = this
	},
})